/* 
==================== 自定义图标 ====================
(注: 可单独引用)
目录(ctrl+F):
  ※箭头: (改变颜色: color, 改变大小: font-size)
    my__icon-arrow_left
    my__icon-arrow_right
    my__icon-arrow_top
    my__icon-arrow_bottom
  ※更多: (改变颜色: color, 改变大小: font-size)
    (注: 里面放三个<view>, 默认总高1.4em)
    my__icon-more
  ※加号: (改变颜色: color, 改变大小: font-size)
    my__icon-add
  ※叉: (改变颜色: color, 改变大小: font-size)
    my__icon-close
  ※对号: (改变颜色: color, 改变大小: font-size)
    my__icon-true
*/

// ========== ※箭头 ==========
// 改变颜色: color, 改变大小: font-size
.my__icon-arrow_left, .my__icon-arrow_right,
.my__icon-arrow_top, .my__icon-arrow_bottom{
  font-size: inherit;
  color: inherit;
  height: 1em;
  width: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.my__icon-arrow_left::before, .my__icon-arrow_right::before,
.my__icon-arrow_top::before, .my__icon-arrow_bottom::before{
  content: '';
  display: block;
  height: 68%;
  width: 68%;
  box-sizing: border-box;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-color: currentColor;
}
.my__icon-arrow_left::before{ transform: rotate(135deg); }
.my__icon-arrow_right::before{ transform: rotate(-45deg); }
.my__icon-arrow_top::before{ transform: rotate(-135deg); }
.my__icon-arrow_bottom::before{ transform: rotate(45deg); }

// ========== ※更多 ==========
// 改变颜色: color, 改变大小: font-size
// 注: 里面放三个<view>, 默认总高1.4em
.my__icon-more{
  font-size: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  >div{
    height: .36em;
    width: .36em;
    border-radius: 50%;
    background-color: currentColor;
    margin-top: .16em;
    &:first-child{ margin-top: 0; }
  }
}

// ========== ※加号 ==========
// 改变颜色: color, 改变大小: font-size
@mixin icon_add{
  height: 1em;
  width: 1em;
  position: relative;
  &::before, &::after{
    content: '';
    display: block;
    background-color: currentColor;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
  &::before{ height: .1em; width: 1em; }
  &::after{ height: 1em; width: .1em; }
}
.my__icon-add{
  font-size: inherit;
  color: inherit;
  @include icon_add;
}

// ===============※叉 ==========
// 改变颜色: color, 改变大小: font-size
.my__icon-close{
  font-size: inherit;
  color: inherit;
  @include icon_add;
  transform: rotate(45deg);
}

// ===============※※对号 ==========
// 改变颜色: color, 改变大小: font-size
.my__icon-true{
  height: 1em;
  width: 1em;
  position: relative;
  &::after{
    content: '';
    display: block;
    height: 1em; width: .5em;
    border: .1rem solid currentColor;
    border-top: 0;
    border-left: 0;
    // background-color: currentColor;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}